package Design_patterns.creator_mode.factory.before;

/**
 * @description: 测试咖啡店类
 **/

public class Client {
    public static void main(String[] args) {
        //创建咖啡类
        CoffeeStore coffeeStore = new CoffeeStore();
        //点咖啡
        Coffee coffee = coffeeStore.orderCoffee("american");
        // Coffee coffee = coffeeStore.orderCoffee("latte");
        System.out.println("coffee.getName() = " + coffee.getName());
    }
}
